package com.cleaningcloud.cld.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cleaningcloud.cld.mapper.CldProjectGroupsMapper;
import com.cleaningcloud.cld.domain.CldProjectGroups;
import com.cleaningcloud.cld.service.ICldProjectGroupsService;

/**
 * 项目组Service业务层处理
 * 
 * @author cleaningcloud
 * @date 2024-10-15
 */
@Service
public class CldProjectGroupsServiceImpl implements ICldProjectGroupsService 
{
    @Autowired
    private CldProjectGroupsMapper cldProjectGroupsMapper;

    /**
     * 查询项目组
     * 
     * @param projectGroupsId 项目组主键
     * @return 项目组
     */
    @Override
    public CldProjectGroups selectCldProjectGroupsByProjectGroupsId(Long projectGroupsId)
    {
        return cldProjectGroupsMapper.selectCldProjectGroupsByProjectGroupsId(projectGroupsId);
    }

    /**
     * 查询项目组列表
     * 
     * @param cldProjectGroups 项目组
     * @return 项目组
     */
    @Override
    public List<CldProjectGroups> selectCldProjectGroupsList(CldProjectGroups cldProjectGroups)
    {
        return cldProjectGroupsMapper.selectCldProjectGroupsList(cldProjectGroups);
    }

    /**
     * 新增项目组
     * 
     * @param cldProjectGroups 项目组
     * @return 结果
     */
    @Override
    public int insertCldProjectGroups(CldProjectGroups cldProjectGroups)
    {
        return cldProjectGroupsMapper.insertCldProjectGroups(cldProjectGroups);
    }

    /**
     * 修改项目组
     * 
     * @param cldProjectGroups 项目组
     * @return 结果
     */
    @Override
    public int updateCldProjectGroups(CldProjectGroups cldProjectGroups)
    {
        return cldProjectGroupsMapper.updateCldProjectGroups(cldProjectGroups);
    }

    /**
     * 批量删除项目组
     * 
     * @param projectGroupsIds 需要删除的项目组主键
     * @return 结果
     */
    @Override
    public int deleteCldProjectGroupsByProjectGroupsIds(Long[] projectGroupsIds)
    {
        return cldProjectGroupsMapper.deleteCldProjectGroupsByProjectGroupsIds(projectGroupsIds);
    }

    /**
     * 删除项目组信息
     * 
     * @param projectGroupsId 项目组主键
     * @return 结果
     */
    @Override
    public int deleteCldProjectGroupsByProjectGroupsId(Long projectGroupsId)
    {
        return cldProjectGroupsMapper.deleteCldProjectGroupsByProjectGroupsId(projectGroupsId);
    }
}
